package com.linksfield.topup.entity.interfaces.anoverview.admin.orderdata.monthdata.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 概览：管理员：按照月份，企业查询：
 * 1，当前选中的月份全年的订单总数，订单总额；
 * 2，当前选中的月份按月的订单总数，订单总额；
 * request：前端 RequestAdminMonthOrder
 * response：后端 ResponseAdminMonthOrder
 *
 * @author: lm
 * @date: 2020-04-15 10:33
 */
@Data
public class ResponseAdminMonthOrder implements Serializable {

    private static final long serialVersionUID = -6248819962222344520L;
    @ApiModelProperty(value = "全年订单数", example = "", dataType = "String")
    private String yearOrderCount;

    @ApiModelProperty(value = "全年订单总额", example = "", dataType = "String")
    private String yearOrderMoney;

    //[{date=2020-04-01, orderMoney=13.99, orderCount=1}, {date=2020-04-02, orderMoney=0.0, orderCount=0}, {date=2020-04-03, orderMoney=0.0, orderCount=0}, {date=2020-04-04, orderMoney=0.0, orderCount=0}, {date=2020-04-05, orderMoney=0.0, orderCount=0}, {date=2020-04-06, orderMoney=0.0, orderCount=0}, {date=2020-04-07, orderMoney=0.0, orderCount=0}, {date=2020-04-08, orderMoney=0.0, orderCount=0}, {date=2020-04-09, orderMoney=0.0, orderCount=0}, {date=2020-04-10, orderMoney=0.0, orderCount=0}, {date=2020-04-11, orderMoney=0.0, orderCount=0}, {date=2020-04-12, orderMoney=0.0, orderCount=0}, {date=2020-04-13, orderMoney=0.0, orderCount=0}, {date=2020-04-14, orderMoney=0.0, orderCount=0}, {date=2020-04-15, orderMoney=0.0, orderCount=0}, {date=2020-04-16, orderMoney=0.0, orderCount=0}, {date=2020-04-17, orderMoney=0.0, orderCount=0}]

    @ApiModelProperty(value = "将返回折线图上所需内容：date=日期；orderCount=订单总条数；orderMoney=订单总金额", example = "[{date=2020-04-01, orderMoney=13.99, orderCount=1}, {date=2020-04-02, orderMoney=0.0, orderCount=0}, {date=2020-04-03, orderMoney=0.0, orderCount=0}, {date=2020-04-04, orderMoney=0.0, orderCount=0}, {date=2020-04-05, orderMoney=0.0, orderCount=0}, {date=2020-04-06, orderMoney=0.0, orderCount=0}, {date=2020-04-07, orderMoney=0.0, orderCount=0}, {date=2020-04-08, orderMoney=0.0, orderCount=0}, {date=2020-04-09, orderMoney=0.0, orderCount=0}, {date=2020-04-10, orderMoney=0.0, orderCount=0}, {date=2020-04-11, orderMoney=0.0, orderCount=0}, {date=2020-04-12, orderMoney=0.0, orderCount=0}, {date=2020-04-13, orderMoney=0.0, orderCount=0}, {date=2020-04-14, orderMoney=0.0, orderCount=0}, {date=2020-04-15, orderMoney=0.0, orderCount=0}, {date=2020-04-16, orderMoney=0.0, orderCount=0}, {date=2020-04-17, orderMoney=0.0, orderCount=0}]\n", dataType = "String")
    private List<Map<String, Object>> dataByDay;

}
